import request from '@/utils/request'

/**
 * 文件上传添加
 * @param data 数据
 * @returns {AxiosPromise}
 */
export function fileImageApi(id,formData, onUploadProgress) {
  return request({
    url:  `/api/Attachments/${id}`,
    method: 'POST',
    headers: {
      'Content-Type': 'application/x-www-form-urlencoded'
    },
    data: formData
  })
}
